package com.kun.req;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @className: PageReq
 * @Description: 分页请求参数
 * @author: kunkun
 * @date: 2025/7/27 14:59
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class PageReq {
    @NotNull(message ="页码不能为空")
    private Integer page;

    @NotNull(message ="每页条数不能为空")
    @Max(value = 100,message = "每页条数不能超过100")
    private Integer size;
}
